package com.zhouheng.common.entity;

/**
 * 返回信息
 *
 * @author 周恒
 * @date 20181003 10:20:38
 * @since v1.0
 */
public class ResponseVo<T> {

    /**
     * code http 状态码
     */
    private int code;

    /**
     * msg 返回信息
     */
    private String msg;

    /**
     * data 返回的数据
     */
    private T data;

    public ResponseVo(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public ResponseVo(int code, String msg, T data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
